#pragma once
#include "Cpunt2D.h"

class CSegment2D
{
public:
	CSegment2D(void);
	CSegment2D(int xi, int xd, int yi, int yd);
	CSegment2D(const CSegment2D &s);
	~CSegment2D(void);
	CSegment2D (Cpunt2D Pi, Cpunt2D Pd);
	Cpunt2D getPi()const;
	Cpunt2D getPd()const;
	void get (Cpunt2D &Pi, Cpunt2D &Pd)const;
	float getlong()const;
	void getPi(int &xi, int &yi)const;
	void getPd(int &xd, int &yd)const;
	void setPi(int xi, int yi);
	void setPd(int xd, int yd);
	void setPi(const Cpunt2D Pi);
	void setPd(const Cpunt2D Pd);
	void set(const Cpunt2D Pi, const Cpunt2D Pd);
	CSegment2D operator=(const CSegment2D &s);
private:
	Cpunt2D m_pi;
	Cpunt2D m_pd;

};
